package com.woniuxy.table.client;


import com.woniuxy.table.client.param.AddTableParam;
import com.woniuxy.table.client.param.ModifyTableParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "tableMannageClient",name="table")
public interface TableMannageClient {


    @PostMapping("/addTable")
    public Result addTable(@RequestBody AddTableParam addTableParam);

    @PutMapping("/modifyTable")
    public Result modifyTable(@RequestBody ModifyTableParam modifyTableParam) throws Exception;

    @DeleteMapping("/deleteTable")
    public Result deleteTable(@RequestParam("storeId") Integer storeId,@RequestParam("tableId")Integer tableId);


}
